Skip to main content

mouseDown

Type

message

Summary

Sent when the user presses the mouse button.

Syntax

mouseDown

Description

Handle the mouseDown message to perform an action when the user presses the mouse button, before the mouse button is released.

Parameters

NameTypeDescription

pButtonNumber

Number

Specifies which mouse button was pressed:

  • "1": the left button on systems with a multi-button mouse and the mouse button on Mac OS systems with a single-button mouse.
  • "2": the middle button on systems with a three-button mouse.
  • "3": the right button on systems with a multi-button mouse and Control-click on Mac OS systems with a single-button mouse.

Compatibility and Support

OS

mac

windows

linux

ios

android

web

Platforms

desktop

mobile